home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 016 / mdosmenu.arc / MDOSMENU.TXT next >
Encoding:
Text File  |  1984-04-26  |  32.1 KB  |  991 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.                               DOS Menu Master V1.3
  13.  
  14.                                   User's Manual
  15.  
  16.  
  17.                                Stuart A. Jones MD
  18.  
  19.                                    April, 1984
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.                   Copyright (C) Stuart A. Jones MD, 1983, 1984
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.           Copyright (C) Stuart Jones 1984        Page 1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.                                 Table of Contents
  73.          
  74.  
  75.              Introduction........................................3
  76.  
  77.              Installation Instructions...........................5
  78.  
  79.              Routine Operation...................................7
  80.  
  81.              Theory of Operation................................12
  82.  
  83.              Advanced Applications..............................13
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.           Copyright (C) Stuart Jones 1984        Page 2
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.                                   Introduction
  139.  
  140.              This  manual describes installation,  routine use,  and  the 
  141.         operation  of  the  DOS Menu Master  program.   This  program  is 
  142.         designed  to  free  the  occasional user of  IBM  PC-DOS  (R)  or 
  143.         Microsoft  MS-DOS  (R) from having to learn the operating  system 
  144.         commands necessary to perform such routine operations as  listing 
  145.         the  directory  of  a diskette,  copying files from  diskette  to 
  146.         diskette, formatting fresh diskettes, etc.  Menu Master does this 
  147.         by  first  giving the user a menu of operations to  choose  from.  
  148.         The  user  is then asked additional questions pertaining  to  his 
  149.         choice.   The  program  then alters  a DOS batch file (a  set  of 
  150.         commands to the operating system,  held in a diskette text file).  
  151.         The  user  can  then go back to  the  menu,  and  choose  another 
  152.         operation,  if he so desires.  When the user is finished with the 
  153.         menu  program,  the batch file is then automatically fed to  DOS, 
  154.         which then executes each of the commands.
  155.              This  version of the program is designed for use with PC-DOS 
  156.         version  1.1 (MS-DOS version 1.25),  and with PC-DOS version  2.x 
  157.         (MS-DOS  version 2.x) on computer systems WITHOUT a 'fixed  disk' 
  158.         (or  hard  disk).   The advanced hard-disk  directory  management 
  159.         features  of  PC-DOS  V2.0  and  MS-DOS  V2.1  are  not  directly 
  160.         available to the user via this version of Menu  Master.   Version 
  161.         2.0 of Menu Master is specifically designed to work with the more 
  162.         advanced  versions of PC-DOS and MS-DOS.   If you are not certain 
  163.         which version of DOS you are using, ask your computer dealer.  In 
  164.         any case,  you may feel free to try to use Menu Master V1.1  with 
  165.         your computer system.  The worst that is likely to happen is that 
  166.         the  commands created by Menu Master will not work,  or that  the 
  167.         Menu Master program itself will fail to operate.  Loss of data on 
  168.         the diskette being used to test Menu Master is unlikely,  but, if 
  169.         you  are in doubt,  please use a spare copy of your DOS  diskette 
  170.         for experimentation!
  171.              Although  this  program is designed for the novice  computer 
  172.         user, anyone wishing to operate this program MUST understand what 
  173.         a 'file' and a 'volume' are.   A 'volume' is, for the purposes of 
  174.         both DOS and Menu Master, a single diskette and the data contents 
  175.         thereof.   Before data can be written on a diskette, a pattern of 
  176.         magnetic  pulses  called  the 'format' must  be  written  on  the 
  177.         diskette,  and  a specific area on the diskette which is used  to 
  178.         hold   a   directory   of   data   contents   must   be   cleared 
  179.         ('initialized').   Data  can then be written on the diskette,  in 
  180.         the form of 'files'--organized collections of data, each of which 
  181.         is assigned space on the diskette by DOS,  and each of which  has 
  182.         an entry in the directory, which serves as a form of index to the 
  183.         data.
  184.              Files are identified to DOS by means of a 'File Name'.   The 
  185.         File  Name  is  in two parts--a name,  up to  8  characters,  and 
  186.         beginning with a letter,  and an extension,  up to 3  characters.  
  187.         The  name and extension are separated by a period ('.')  You  are 
  188.         encouraged  to  read the material pertaining to files  and  their 
  189.         naming in your DOS manual.
  190.              Volumes  are  identified  to DOS according to  the  diskette 
  191.  
  192.  
  193.           Copyright (C) Stuart Jones 1984        Page 3
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.         drive in which they currently reside.  At present, volumes may be 
  203.         named (in PC-DOS V2.0 and MS-DOS V2.1),  but the volume names are 
  204.         not operationally significant.   The diskette drives are labelled 
  205.         'A:'  (or 'a:'),  'B:',  'C:',  etc.   These labels refer to  the 
  206.         actual physical position of each diskette drive.  For example, on 
  207.         the IBM Personal Computer, the A: drive is that on the left.  You 
  208.         are  again  encouraged to read about disk drive  naming  in  your 
  209.         manuals.
  210.              With  this  information and Menu Master,  it is possible  to 
  211.         perform most routine DOS file and volume maintainance  activities 
  212.         without  learning the exact DOS commands required.   You will  be 
  213.         exposed  to  these  commands,  since they are  displayed  as  DOS 
  214.         executes each one.   The batch files you create can also be saved 
  215.         for later use, if you desire.
  216.              Menu  Master is a copyrighted product of Nuclear Software of 
  217.         Allentown, Pa.  This program is distributed as 'Share-ware'.  You 
  218.         are  encouraged to copy and share this program with your  friends 
  219.         and associates.   If you,  or they, find this program worthwhile, 
  220.         you  are encouraged to send a contribution of $20 to the  address 
  221.         below.   This will enroll you among the registered users of  Menu 
  222.         Master.  As a registered user, you will receive notice of updates 
  223.         and  improvements  in the program,  as well as information  about 
  224.         other products from our company.   Contributions,  questions  and 
  225.         comments should be referred to:
  226.  
  227.                                  Nuclear Software
  228.                                  1045 Treeline Dr.
  229.                                  Allentown, Pa. 18103
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.           Copyright (C) Stuart Jones 1984        Page 4
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.                             Installation Instructions
  271.  
  272.  
  273.              These  instructions  explain  how to copy  the  Master  Menu 
  274.         program  MMENU.EXE  from  the distribution diskette to  your  DOS 
  275.         Master  diskette,  and how to run MMENU to set up  the  necessary 
  276.         batch file.
  277.              In  order  for  DOS to successfully carry out  all  commands 
  278.         built into MMENU,  the following files should be present on  your 
  279.         DOS Master diskette:
  280.  
  281.              CHKDSK.COM
  282.              DISKCOPY.COM
  283.              DISKCOMP.COM
  284.              BASICA.COM
  285.              FORMAT.COM
  286.  
  287.         If you wish to 'lock out' a command (such as FORMAT, which can be 
  288.         abused   to  accidentally  destroy  the  contents  of  an  entire 
  289.         diskette),  leave  the  appropriate  file  off  your  DOS  Master 
  290.         diskette.
  291.              Installation of MMENU can be completed in five easy steps:
  292.  
  293.              1)   Place  your DOS Master diskette in drive  A:,  and  the 
  294.         MMENU  distribution diskette in drive B:.   If you have only  one 
  295.         drive, insert into it the DOS Master diskette.
  296.  
  297.              2)  Type the following:  copy b:mmenu.exe a:<enter>
  298.         ('<enter>' means press the 'enter' key (just above 'PrtSc' on the 
  299.         IBM PC and most look-alikes))
  300.  
  301.              3)  If you have only one diskette drive,  DOS will tell  you 
  302.         to insert the 'B:' diskette.  Insert the distribution disk.  When 
  303.         DOS tells you to insert the 'A:' diskette,  insert the DOS Master 
  304.         diskette.
  305.  
  306.              4)  When the copy operation is complete, type: cmenu<enter>
  307.         The  menu  will  be displayed,  after some diskette  reading  and 
  308.         writing.
  309.  
  310.              5)   Press the 'F9' key.   In response to the next  question 
  311.         (Execute Prior Commands?),  type  <enter>.   After some more disk 
  312.         activity,  the computer will print the 'A>'prompt .   You are now 
  313.         back at DOS command level.
  314.  
  315.              At this point, you have created a batch file--'menu.bat', as 
  316.         well as a data file, 'menu.dat'.  These files are used to run the 
  317.         Menu Master program automatically.   MMENU alters 'menu.bat', and 
  318.         loads this file with the commands you select from the menu.
  319.              Apart  from  MMENU.EXE,  which requires  28K  characters  of 
  320.         diskette  storage space,  the files involved take up little space 
  321.         on  diskette.   Advanced  users may wish to install MMENU  on  an 
  322.         'electronic disk' in upper main memory.  MMENU and its supporting 
  323.  
  324.  
  325.           Copyright (C) Stuart Jones 1984        Page 5
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.         DOS  programs require a minimum 64K character 'electronic  disk'.  
  335.         If  you are a novice with a 'big' computer with plenty of  memory 
  336.         and  'electronic disk' programs available,  by all means try  out 
  337.         MMENU on 'electronic disk'.
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.           Copyright (C) Stuart Jones 1984        Page 6
  392.  
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.                                 Routine Operation
  403.  
  404.  
  405.              The DOS Menu Master Program is run by  typing:  menu<enter>.  
  406.         MMENU.EXE  cannot be effectively used outside of the batch  file, 
  407.         menu.bat.
  408.              In  routine  operation,  the  altered  batch  file  menu.bat 
  409.         will be executed by DOS immediately after you finish using MMENU.  
  410.         When menu.bat is run,  the last command executed will be 'menu'--
  411.         which starts up MMENU again.
  412.              When MMENU begins operation,  it erases the previous version 
  413.         of  menu.bat,  and reads the number of the operation chosen  last 
  414.         from the menu from menu.dat.  MMENU next reads the file menu.app, 
  415.         which holds a subsidiary menu of applications commands set up  by 
  416.         you or your computer dealer.  MMENU then displays the menu:
  417.  
  418.              File Maintainence:
  419.  
  420.                 1 - List Directories of Disk(s)
  421.                 2 - Copy File(s)
  422.                 3 - Display/Print Text File
  423.  
  424.              Volume Maintainence:
  425.  
  426.                 4 - Format Diskette in Drive B:
  427.                 5 - Copy Entire Diskette Contents
  428.  
  429.              Other:
  430.  
  431.                 6 - Run a DOS Program or Batch File
  432.                 7 - Run a BASIC Program
  433.                 8 - Exit to BASIC
  434.                 9 - Exit to DOS
  435.                10 - Run Application From Menu
  436.  
  437.              Default -- Repeat Last Operation
  438.  
  439.              Your choice:
  440.  
  441.  
  442.         In  response  to the prompt,  'Your choice:  ',  you may enter  a 
  443.         number  from 1 to 10,  or press a function key.   Press  'F1'  to 
  444.         select choice 1,  'F2' to select choice 2,  etc. etc.  MMENU will 
  445.         then  ask  one  or more questions depending on which  option  you 
  446.         chose.  After you have answered the questions, you will be asked, 
  447.         in most cases,  '(C)ontinue or (E)xecute? '. If your reply begins 
  448.         with  the letter 'c' (either capital or lower-case),  MMENU  will 
  449.         return  you  to the menu for another choice.   If you  choose  to 
  450.         'execute',  MMENU  saves the number of your last chosen operation 
  451.         in menu.dat,  finishes setting up menu.bat,  and exits.   At this 
  452.         point,  if you are running automatically, menu.bat is executed by 
  453.         DOS.
  454.              The questions asked pertaining to each menu choice,  and the 
  455.  
  456.  
  457.           Copyright (C) Stuart Jones 1984        Page 7
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.         default answers to them, are described below.  Please note that a 
  467.         'default'  answer  is  one  assumed by MMENU if  you  only  press 
  468.         <enter> in reply to a question.
  469.  
  470.         1 - List Directories of Disk(s)
  471.  
  472.              The first question is:  (A)ll or (S)elected Files?
  473.         The default answer is All.  Your reply must begin with the letter 
  474.         's'  if you wish to list selected files.   If you  do,  the  next 
  475.         question is:  File Name (name.ext):
  476.              You  may,  at this point,  enter a file name using so-called 
  477.         'wild card' notation.   For example,  to list all files with  the 
  478.         name 'demo',  you would enter:  demo.*<enter>.  To list all files 
  479.         with  the  extension BAS (i.e.  all BASIC  programs),  you  would 
  480.         enter:   *.bas<enter>.  'Wild cards' are explained in the section 
  481.         of your DOS manual dealing with file names.   By all means,  read 
  482.         this section.
  483.              If you have selected 'All' files,  or after you have entered 
  484.         a file name, the next question is:  Disk Drive (A, B, C...):
  485.         Enter  the single letter corresponding to the disk drive in which 
  486.         currently resides the volume whose directory you wish to see.  If 
  487.         you enter a colon (':') after the letter, don't worry; MMENU will 
  488.         recognize your answer anyway.   The default is the drive in which 
  489.         resides the diskette you are currently using to run MMENU.
  490.              You will then be asked:  (R)egular or (W)ide?
  491.         The  default is 'regular'.   The directory,  in this  form,  will 
  492.         appear  as  a single column of file names,  each with a  size  in 
  493.         characters and a creation date.  If more than 24 files are in the 
  494.         directory,  the listing will pause until you strike a  key.   The 
  495.         wide  form  (selected by entering a reply beginning  with  letter 
  496.         'w')  displays file names only,  in four columns,  and will pause 
  497.         for you to strike a key only at the end of the display listing.
  498.              The next question is:  Check Free Space?
  499.         The  default  answer  is 'yes'.   After  the  directory  listing, 
  500.         program  CHKDSK  will be run.   This program displays  both  disk 
  501.         space utilization and main memory size.   You will then again  be 
  502.         asked to press a key to continue.
  503.              You will then be asked to Continue or Execute.
  504.  
  505.         2 - Copy File(s)
  506.  
  507.              The first question is:  Source Device (A, B, C... or CON):
  508.         You may enter a single letter for the diskette drive holding  the 
  509.         volume  containing the file(s) you wish to copy,  or specify CON, 
  510.         in  which  case  you can create a single  file  typing  from  the 
  511.         keyboard,  a  process described in your DOS manual.   Creating  a 
  512.         text  file from CON:  is NOT RECOMMENDED unless you know  EXACTLY 
  513.         what  you are doing.   This can be a useful 'quick and dirty' way 
  514.         of creating text files without using a text editor.   If the file 
  515.         you  are creating is to be more than 4-5 lines long,  better  use 
  516.         EDLIN.COM, or a word-processing program if you have one.
  517.              The next question asked is:  File Name (name.ext):
  518.         Again,  you  may  use 'wild card' notation to specify a group  of 
  519.         files to be copied.  A default reply returns you to the menu.
  520.              The next question is:   Destination Device (A,  B,  C...  or 
  521.  
  522.  
  523.           Copyright (C) Stuart Jones 1984        Page 8
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.         LPT1).  Enter a letter for the disk drive holding the destination 
  533.         volume.   If you enter: lpt1:<enter>, the files will be copied to 
  534.         your  lineprinter,   if  you  have  one.    If  you  specify  the 
  535.         lineprinter  as  the destination,  at this  point,  TURN  IT  ON.  
  536.         Trying  to  copy  to an inactive lineprinter will only  cause  an 
  537.         error message in most versions of MS-DOS (including all  versions 
  538.         of  PC-DOS),  but  MAY  'hang  up'  the  computer  (cause  it  to 
  539.         mysteriously stop functioning, in which case you must turn it off 
  540.         and then back on again).
  541.              The final question is:  Destination File Name (name.ext):
  542.         A  default answer causes the file(s) to have the same name on the 
  543.         destination volume as on the source volume.   If you enter a file 
  544.         name,  do so CAREFULLY,  as this effectively changes the name  of 
  545.         the file you are copying to this new name.  Be especially careful 
  546.         if  you  use 'wild cards'.   The best answer to this question  is 
  547.         usually a default.   You can always rename files later, using the 
  548.         DOS 'rename' command (q.v. in your Friendly DOS Manual).
  549.  
  550.         3 - Display/Print Text File
  551.  
  552.              You are first asked:  Disk Drive (A, B, C...):
  553.         Enter a drive letter, as above.
  554.              You are then asked:  File Name (name.ext):
  555.         You  may  use a 'wild card',  but this  is  not  recommended,  as 
  556.         multiple  files specified with a 'wild card' will be displayed or 
  557.         printed without a break between files.
  558.              The last question is:  (C)onsole or (P)rinter?
  559.         The  default is 'console'--i.e.  displaying file contents on  the 
  560.         screen.   Your  reply must begin with letter 'p' to specify  hard 
  561.         copy.
  562.  
  563.         4 - Format Diskette in Drive B:
  564.  
  565.              If you select this option,  you are planning to write format 
  566.         data on a (hopefully) previously blank diskette in disk drive b:.
  567.         Please,  before  proceeding,  INSERT THE BLANK DISKETTE IN  DRIVE 
  568.         B:!!!   Formatting  the  diskette will ERASE ALL  DATA  currently 
  569.         residing  upon  it!   As such,  formatting is  useful  for  'bulk 
  570.         erasing'  diskettes with potentially sensitive data you no longer 
  571.         need.  You will be asked only one question:  Copy DOS?
  572.         The default reply is 'yes'.   The formatted diskette will then be 
  573.         usable as a DOS system diskette.  If you wish to use the diskette 
  574.         for data only,  your reply must begin with letter 'n'.  You will, 
  575.         of course be asked to Continue or Execute.
  576.              Once again, PLEASE BE CAREFUL when exercising this option.
  577.  
  578.         5 - Copy Entire Diskette Contents
  579.  
  580.              You will be asked:  Source Disk Drive (A, B, C...):
  581.         and then:  Destination Disk Drive (A, B, C...):
  582.         A  default to either question will cause the copying operation to 
  583.         misfire.   No harm will result;  but no copying will, either.  If 
  584.         you  mistakenly enter the same answer to  both  questions,  MMENU 
  585.         will point out your error,  and return you to the menu.  You will 
  586.         then be asked:  Verify Copy?
  587.  
  588.  
  589.           Copyright (C) Stuart Jones 1984        Page 9
  590.  
  591.  
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.              The  default  answer (a good one--strongly  recommended)  is 
  599.         'yes'.   To  suppress verification (checking that the copying was 
  600.         exact),  your reply must begin with letter 'n'.   The DOS program 
  601.         DISKCOPY  is  used to execute this  option.   When  menu.bat  is 
  602.         executed by DOS,  and DISKCOPY is run,  you will be instructed by 
  603.         DISKCOPY  to insert source and target volumes in the disk  drives 
  604.         you have specified.  Please, BE CAREFUL!!!  If you place the disk 
  605.         you are copying in the wrong drive,  you may WIPE IT CLEAN!!!  or 
  606.         worse,  copy  old data over new data!!   For maximum  protection, 
  607.         WRITE  PROTECT  the  disk  you are 'backing  up'!   If  you  have 
  608.         specified verification,  the DOS program DISKCOMP is  run,  which 
  609.         checks that the original and the copy are identical.
  610.  
  611.         6 - Run a DOS Program or Batch File
  612.  
  613.              You are asked:  Source Disk Drive (A, B, C...):
  614.         Once  again,  the  default is the drive you are currently  using.  
  615.         You are then asked:  Program/Batch File Name (name only):
  616.         You  need not specify a file extension to answer  this  question.  
  617.         Indeed,  you  need not specify a file name.   This option inserts 
  618.         whatever you type in reply to the second question into the  batch 
  619.         file,   menu.bat   (optionally   preceded   by  a   disk   drive 
  620.         specification).   Once you are comfortable with DOS commands, you 
  621.         can use this option to build some pretty slick batch files.   You 
  622.         can  also  use  this  option  to  perform  'delete'  or  'rename' 
  623.         operations--but this is NOT RECOMMENDED.
  624.              Indeed,  you may be wondering by now why 'Delete File(s)' or 
  625.         'Rename  File(s)' are not options in the  menu.   These  commands 
  626.         were  not overlooked.   They are not included because the  author 
  627.         believes  fervently that they should NEVER be included in a batch 
  628.         file;  the potential for disaster is just too great.  Novices, in 
  629.         particular, should rename or delete files with GREAT caution, and 
  630.         preferably without using 'wild cards'.   (Just why MICROSOFT  did 
  631.         not  include  safeguards against wholesale mistaken  deletion  or 
  632.         renaming  of files is beyond me (and most other observers).)  End 
  633.         of sermon.
  634.              You  should  of course be aware of the way  DOS  works  when 
  635.         presented with a program name for execution.   DOS is told to run 
  636.         a  program  by entering the name of the program (with or  without 
  637.         extension).   If  no  extension is specified,  DOS  searches  the 
  638.         directory of the specified diskette for a file with the specified 
  639.         name and one of three extensions (COM,  EXE and BAT).   DOS first 
  640.         looks  for a file with the COM extension,  then for one with  the 
  641.         EXE extension,  and last for one with the BAT extension.   It  is 
  642.         best  not  to  have  programs with the same  name  and  different 
  643.         extensions,  or  programs  and batch files with the  same  names.  
  644.         (This is why MMENU.EXE is named MMENU.EXE and not MENU.EXE, which 
  645.         would work, but be confusing.)
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.           Copyright (C) Stuart Jones 1984        Page 10
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.         7 - Run a BASIC Program
  666.  
  667.              You are asked:  Source Disk Drive (A, B, C...):
  668.         Then you are asked:  BASIC Program Name (name only):
  669.         A  default  reply  will start  up  BASICA,  without  loading  and 
  670.         executing  a BASIC program.  You must,  if you specify a  program 
  671.         name, enter the name only.  The extension BAS is assumed.
  672.  
  673.         8 - Exit to BASIC
  674.  
  675.              You are asked:  Execute Prior Commands?
  676.         The  default  answer is 'no'.   If your reply begins with  letter 
  677.         'y',  all the commands put in menu.bat are retained,  and will be 
  678.         executed by DOS before BASICA is executed; after you leave BASICA 
  679.         (via  a SYSTEM command),  MMENU will automatically be run  again.  
  680.         If not,  all previous options you chose are discarded.
  681.              If  you  discarded  all previous  options,  when  you  leave 
  682.         BASICA,  MMENU will NOT automatically be run;  you will, instead, 
  683.         be returned to DOS command level.   You may then run MMENU either 
  684.         automatically or semi-automatically, as described above.
  685.              You  will  NOT  be asked,  (C)ontinue  or  (E)xecute?  after 
  686.         selecting  this option;  execution commences forthwith after  you 
  687.         answer the  question.
  688.  
  689.         9 - Exit to DOS
  690.  
  691.              You are asked:  Execute Prior Commands?
  692.         The  default  is 'no'.   If your reply begins  with  letter  'y', 
  693.         menu.bat will be executed by DOS immediately,  if you are running 
  694.         MMENU automatically.  If not,  all prior commands selected by you 
  695.         will  be  discarded,  and you will be left at DOS command  level, 
  696.         regardless of how you are running MMENU.   As for Option 8, MMENU 
  697.         will exit forthwith after you answer the question.
  698.              This  option provides an 'escape hatch' if you have  made  a 
  699.         mistake with a prior command; if you answer `no` to the question, 
  700.         the contents of menu.bat will be erased, and you can start over.
  701.  
  702.         10 - Run Application From Menu
  703.  
  704.              When MMENU starts up, it looks for the file menu.app, a text 
  705.         file  which  holds a subsidiary menu of DOS  commands  which  run 
  706.         specific applications programs.   If this file is not found, this 
  707.         option cannot be used.   In this case,  if Option 10 is selected, 
  708.         MMENU says:
  709.  
  710.         No Applications Present
  711.  
  712.         Press any Key to Continue
  713.  
  714.         If you press any key, you will be returned to the main menu.
  715.              Menu.app is a standard text file, which can be created using 
  716.         EDLIN or any other text editor or word processor.  The first line 
  717.         of this file is an integer number between 1 and 10,  representing 
  718.         the  number of applications command lines in the remainder of the 
  719.  
  720.  
  721.           Copyright (C) Stuart Jones 1984        Page 11
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.         file.   Each  subsequent line consists of a menu item  (displayed 
  731.         for the user to select from), followed by one or more DOS command 
  732.         lines.  The menu item is separated from the command line(s) by an 
  733.         up-arrow ('^'); individual command lines are also separated by an 
  734.         up-arrow.
  735.              As an example,  suppose that file menu.app has the following 
  736.         contents:
  737.  
  738.         2
  739.         Run Visicalc^a:vc80
  740.         Copy DIF Files and Delete^copy c:*.dif b:^del c:*.dif
  741.  
  742.         When  Option  10 is selected,  the screen  is  cleared,  and  the 
  743.         following menu is displayed
  744.  
  745.                        Applications Menu
  746.  
  747.                  1 - Run Visicalc
  748.                  2 - Copy DIF Files and Delete
  749.  
  750.                  Your Choice:
  751.  
  752.         You  then  choose from this menu as from the main menu  (i.e.  by 
  753.         entering a number or pressing a function key).   If you enter  0, 
  754.         or  default,  you will return directly to the main menu.   If you 
  755.         were  to  enter:  1<enter> in this  example,  the  command  line: 
  756.         'a:vc80' would be added to menu.bat.   If you entered:  2<enter>, 
  757.         the  command lines:  'copy c:*.dif b:' and 'del c:*.dif' would be 
  758.         added to menu.bat.
  759.              More   experienced  users  can  easily  create   their   own 
  760.         applications  menus.   Novices  should use the applications  menu 
  761.         supplied by their friends or dealer.
  762.  
  763.  
  764.  
  765.  
  766.  
  767.  
  768.  
  769.  
  770.  
  771.  
  772.  
  773.  
  774.  
  775.  
  776.  
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.           Copyright (C) Stuart Jones 1984        Page 12
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.                                Theory of Operation
  798.  
  799.  
  800.              The  techniques used by Menu Master are quite  simple.   DOS 
  801.         batch files may chain to each other;  therefore, if a program run 
  802.         via  one  batch  file  creates or modifies the  next  batch  file 
  803.         chained  to,  the  program effectively controls the  DOS  command 
  804.         flow.
  805.              The  implications  of this observation may be  profound  for 
  806.         developers  of integrated software systems.   MMENU represents  a 
  807.         very  simple-minded model for interaction of a program  with  its 
  808.         batch environment.   Were it possible to 'lock out' the user from 
  809.         interfering  with  batch  execution (as it is in  many  operating 
  810.         systems  for larger computers),  this technique could be used  to 
  811.         create  modules  capable  of interaction via  the  batch  process 
  812.         itself.   Perhaps,  in future MS-DOS releases,  this will  become 
  813.         possible.
  814.              At  present,  the DOS command interpreter keeps track of the 
  815.         name of the batch file being executed,  and the line position  in 
  816.         that  file of the next command.   This consideration is used  for 
  817.         altering the current contents of the batch file being run by  DOS 
  818.         at  the  time MMENU is executed.   At entry,  MMENU  deletes  the 
  819.         current  contents  of menu.bat,  and writes 'cmenu' as its  first 
  820.         line.   Subsequent  commands are appended to the file,  which  is 
  821.         closed when MMENU exits.  DOS then picks up execution of menu.bat 
  822.         with  the second line,  and proceeds to the last line,  which  is 
  823.         'menu' unless 'Exit to DOS' or 'Exit to BASIC' has been chosen.
  824.  
  825.  
  826.  
  827.  
  828.  
  829.  
  830.  
  831.  
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844.  
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.           Copyright (C) Stuart Jones 1984        Page 13
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862.  
  863.  
  864.                               Advanced Applications
  865.  
  866.  
  867.              In  this  section,  more advanced DOS users may find  a  few 
  868.         'tricks' they can perform using MMENU.
  869.  
  870.         Changing the Default Disk Drive
  871.  
  872.              Using   Option  6,   it  is  possible  to  insert  a   drive 
  873.         specification alone into menu.bat.  This effectively changes the 
  874.         'logged-in' or default disk drive.   The author has  successfully 
  875.         used  this  trick  to install MMENU on an 'electronic  disk'  and 
  876.         resume  automatic operation.   (Creating the batch file for  THIS 
  877.         trick  is  left  as an exercise for the  reader.)   This  may  be 
  878.         necessary  when a program to be run expects to find related files 
  879.         on the same diskette.   One should remember to change the default 
  880.         drive  back  to its original value after such a program  is  run; 
  881.         otherwise,  automatic menu operation will cease when menu.bat  is 
  882.         not  found on the new drive (this may be a desirable side  effect 
  883.         in some cases, though).
  884.  
  885.         'Electronic Disk'
  886.  
  887.              If  sufficient  memory  space is available,  MMENU  and  its 
  888.         related   files  may  be  held  on   'electronic   disk'.    This 
  889.         dramatically  improves performance of MMENU (indeed,  this  makes 
  890.         Menu  Master  a reasonable enhancement for even  fairly  advanced 
  891.         users).   If  programs to be run must reside on disks in physical 
  892.         drives,  one  can  either specify the source drive  for  programs 
  893.         manually or change default disk assignment as above.
  894.              Some  'electronic  disk' driving programs can  be  activated 
  895.         from  within a batch file,  and will create an 'electronic  disk' 
  896.         without restarting DOS.  Such programs can be particularly useful 
  897.         in managing a batch stream.
  898.  
  899.         Starting Menu Master From 'Cold Boot'
  900.  
  901.              Advanced  users  who are configuring system disks  for  less 
  902.         experienced individuals may wish to start automatic operation  of 
  903.         MMENU  on  startup  by adding the command,  'menu'  as  the  last 
  904.         command in autoexec.bat.   MMENU operation from 'electronic disk' 
  905.         could also be begun thus.
  906.  
  907.         PC-DOS 2.0 Commands
  908.  
  909.              The  Applications Menu can be used to operate  a  fixed-disc 
  910.         branching  directory with minimal pain to the user.   Options  in 
  911.         this  menu  can  be  set  up by the  computer  dealer  to  switch 
  912.         directories and start up an application within and using the  new 
  913.         directory   without  additional  user  intervention.    DOS  V2.0 
  914.         commands can,  of course, also be put in batch files which may be 
  915.         invoked either via the Applications Menu or using Option 6 to run 
  916.         the  batch file by name.   Note,  however,  that if you  wish  to 
  917.  
  918.  
  919.           Copyright (C) Stuart Jones 1984        Page 14
  920.  
  921.  
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928.         return  to  the menu automatically,  the last command in  such  a 
  929.         batch  file  MUST be 'menu'.   If you wish to return to the  menu 
  930.         only  sometimes,  insert a comment instructing the user to  press 
  931.         'control-break' to exit the batch file, and then insert a 'pause' 
  932.         command.
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.  
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975.  
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985.           Copyright (C) Stuart Jones 1984        Page 15
  986.  
  987.  
  988.  
  989.  
  990.  
  991.